from graph import *
a = int(input("")) * 10
b = int(input("")) * 10
c = int(input(""))
if a<=0 or b<=0 or a+30*c>=500 or b+20*c>=500:
   print("фигура выходит за границы ")
else:
    brushColor(255,20,5)
    penSize(c = 1)
    penColor(0,20,10)

    polygon([(a,b), (a+10*c,b), (a+10*c,b+10*c),\
             (a+20*c,b+10*c), (a+20*c,b), (a+30*c,b),\
             (a+30*c,b+20*c), (a,b+20*c), (a,b)])

    for i in range(51):
        penColor(220,220,220)
        line(0, i*10, 500, i*10)
        line(i*10, 0, i*10, 500)

run
 
